package cn.practice.egweibo3.controller;

import cn.practice.egweibo3.comment.response.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/v1/test/")
@Api(tags = "egweibo3")
public class TestController {

    @ApiOperation(value = "测试get")
    @GetMapping("testGet")
    public JsonResult testGet() {
        return JsonResult.success();
    }

    @ApiOperation(value = "测试post")
    @PostMapping("testPost")
    public JsonResult testPost() {
        return JsonResult.success("成功");
    }
}
